import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  routes: [
    //布局page
    {
      path: '/',
      name: 'home',
      component: resolve => require(['@/components/home.vue'],resolve),//首页
      meta:{
        title:'123'
      }
    },
  ]
})


// //改变显示标题
router.beforeEach((to,from,next)=>{
    // console.log(to)
  next()
  //

})

export default router;
